﻿using MvcApplication.Entity;
using System.Data.Entity.ModelConfiguration;

namespace MvcApplication.Data.Mapping
{
    public class Picture_Mapping : EntityTypeConfiguration<Picture>
    {
        public Picture_Mapping()
        {
            this.HasKey(t => t.ID);
            this.ToTable("Picture");

            this.HasMany(t => t.PictureBanks).WithOptional().HasForeignKey(t => t.PictureID);
        }
    }
}
